﻿@model Doan.Website.Models.ChangePasswordModel
@{
    Layout = "~/Views/Shared/_Layout_Logon.cshtml";
}



<div class="form-logon clearfix">
    @if (ViewBag.ChangePass != null)
    {
        <div class="alert alert-block fade in alert-error alert-error">
            <a href="#" data-dismiss="alert" class="close">&times;</a>
            @ViewBag.ChangePass
        </div>
    }
    @if (ViewBag.ChangePassSuccess != null)
    {
        <div class="alert alert-block fade in alert-success">
            <a href="#" data-dismiss="alert" class="close">&times;</a>
            @ViewBag.ChangePassSuccess
            <br/>
            @Html.ActionLink("Trở về trang chủ","Index","Admin")
        </div>
    }
    @using (Html.BeginForm("ChangePasswordSite", "Account", FormMethod.Post))
    {
        <legend class="span5">Thay đổi mật khẩu</legend>
        <div class="box-logon">
            <div class="editor-label ">
                <span>Mật khẩu cũ</span>
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.OldPassword)
                @Html.ValidationMessageFor(model => model.OldPassword)
            </div>
            <div class="editor-label ">
                <span>Mật khẩu mới</span>
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.NewPassword)
                @Html.ValidationMessageFor(model => model.NewPassword)
            </div>
            <div class="editor-label ">
                <span>Nhập lại mật khẩu</span>
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ConfirmPassword)
                @Html.ValidationMessageFor(model => model.ConfirmPassword)
            </div>
            <div class="btnLogon">
                <input type="submit" value="Đồng ý"  class="btn btn-success btn-large"/>
            </div>
        </div>
    }
</div>